<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>登录页面</title>

    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

    <style type="text/css">
        body {
            background-image: url("images/bg2.jpg");
            background-repeat: no-repeat;
            background-position: 50% 1%;
            color: white;

        }
        #heading {
            background-color:transparent;
            color: white;

        }


        .panel-default {
            background-color:rgba(0,0,0,0.1);
            border-color:#AAAAAA;
        }

        input[type='checkbox'] {

            position: relative;
            top: 7px;
            left: -10px;
        }
        .kongbai{height: 100px}
        .kong{height: 50px}
        .btn-sm
        btn-sm{
            color: white;
            background-color: transparent;
        }
       .pull-right{
           margin-right: 200px;
       }
        span{
            color: white;
        }
        span>a{
            color: white;
            text-decoration: none;
        }
        a:hover{
            text-decoration: none;
            color: rgba(0,0,0,0.8);
        }

    </style>
</head>
<body>
<!--登录页标题-->
<div class="kongbai"></div>
<header>
    <div class="container">
        <div class="row">
            <div class="col-md-offset-4 col-md-8">
                <img src="images/logo.png" alt="">
            </div>
        </div>
    </div>
</header>
<div class="kong"></div>
<div class="container">
    <div class="row">
        <div class="col-md-offset-2 col-md-8">
            <!--登录面板-->
            <div class="panel panel-default">
                <!--面板标题-->
                <div class="panel-heading" id="heading">
                    <h2 class="panel-title">登录/<a  href="index.html">首页</a></h2>
                </div>
                <!--面板主体-->
                <div class="panel-body">
                    <!--登录表单-->
                    <form id="myform" class="form-horizontal" role="form"
                          action="loginaction" method="post">
                        <!--用户名-->
                        <div class="form-group">
                            <label for="name" class="col-md-2 control-label">用户名</label>
                            <div class="col-md-8">
                                <input type="text" v-model="username"
                                       class="form-control" id="name" name="username"
                                       placeholder="请输入用户名">
                            </div>
                        </div>
                        <!--密码-->
                        <div class="form-group">
                            <label for="pwd" class="col-md-2 control-label">密码</label>
                            <div class="col-md-8">
                                <input type="password" v-model="password"
                                       class="form-control" id="pwd" name="password"
                                       placeholder="请输入密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="pwd" class="col-md-3 control-label">记住用户名和密码</label>
                            <div class="col-md-9">
                                <input type="checkbox" name="rem">
                            </div>
                        </div>
                        <!--登录按钮-->
                        <div class="form-group">
                            <div class="col-md-offset-4 col-md-10">
                                <button type="button" class="btn btn-default sublogin" @click="login()">登录</button>

                                <span class="pull-right">没有账号？<a href="reg.html">注册</a></span>
                                <span></span>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
<!--网页页脚-->

</body>
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<!--引入vue-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!--引入axios框架-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="js/business/login.js"></script>
</html>

